<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class TypeModel extends Model
{
    //
    protected $table="types";
    protected $primaryKey="id";
    protected $fillable=["typename"];
    public $timestamps = false;
    

    public function getalldata(){

    	return self::all();
    }

    public function add($data){

    	return self::create($data);
    }

}
